package com.hs.room.model.sys


import androidx.room.ColumnInfo
import androidx.room.Entity
import androidx.room.Index
import androidx.room.PrimaryKey

@Entity(tableName = "sys_role",
        indices = [
        Index(value = ["code"], unique = true)
    ]
)
data class SysRole(

    @PrimaryKey(autoGenerate = true)
    val id : Long? = null,
    @ColumnInfo
    val roleName:String,
    @ColumnInfo
    val code:String,
    @ColumnInfo
    val createTime:String? = "",
    @ColumnInfo
    val updateTime:String? = "",
    @ColumnInfo
    val createTimestamp : Long? = null,
    @ColumnInfo
    val updateTimestamp : Long? = null,
    @ColumnInfo
    val createBy:String?="",
    @ColumnInfo
    val updateBy:String? = "",
    @ColumnInfo
    val enable : Boolean? = true,
    // 是否是系统的，初始化的标志 这个有值 不能删除
    @ColumnInfo
    val sysTemNo:String? = "",
)